package com.cloud.cloudcommons.pojo;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/21 14:19
 * @Modified By:
 */
public enum  CommonResult {
    SUCCESS("200","操作成功",null),
    ERROR("400","操作错误",null),
    NO_AOTHENTICATION("401","无权限",null);

    private String code="";
    private  String message="";
    private Object data=null;

    CommonResult(String code,String message,Object data){
        this.code=code;
        this.message=message;
        this.data=data;
    }


    public static void main(String[] args) {
       // CommonResult.SUCCESS("ss","ss","Sad");
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
